package cn.icare.cms.model.vo.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiResponse;

@ApiModel(value = "RespMsgVO",description = "返回说明")
public class RespMsgVO <T>{
    @ApiModelProperty(value = "返回状态码；200:成功;401:未登录;400:系统异常")
    private int code;
    @ApiModelProperty(value = "异常信息")
    private String msg;
    private T resData;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResData() {
        return resData;
    }

    public void setResData(T resData) {
        this.resData = resData;
    }

    public RespMsgVO(int code, String msg, T resData) {
        this.setCode(code);
        this.setMsg(msg);
        this.setResData(resData);
    }
}
